package com.gj.util;

import org.apache.catalina.core.ApplicationContext;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;


public class WriteLog {
	  public static Logger logger;
		static{
	        PropertyConfigurator.configure("/log4j.properties");
		    logger=Logger.getLogger(ApplicationContext.class);
		}
		    	public static WriteLog logs;
		    	public static synchronized WriteLog getLog4j(){
		    		if(logs==null){
		    			
		    			logs=new WriteLog();
		    		
		    		}
		    		
		    	return logs;
		    }
		    	
		   
}
